<template>
  <div class="app-page-main-header">
    <slot name="header"></slot>
  </div>
  <slot name="toolbar"></slot>
  <div class="app-page-main-body">
    <slot></slot>
  </div>
  <div class="app-page-main-footer">
    <slot name="footer"></slot>
  </div>
</template>

<script setup>
const props = defineProps({
  isCard: false,
})

const pageClass = computed(() => {
  let className = {
    'app-page': true,
  }

  if (props.isCard) className['app-page-card'] = true

  return className
})
</script>

<style lang="scss" scoped></style>
